package ru.paswd.marketprice.storage.receipt.app.repositories;

import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import ru.paswd.marketprice.storage.receipt.app.entity.Receipt;
import ru.paswd.marketprice.storage.receipt.app.entity.ReceiptItem;

import java.util.UUID;

@Repository
public interface ReceiptItemsRepository extends CrudRepository<ReceiptItem, UUID> {
    void deleteAllByReceipt(Receipt receipt);
    void deleteAllByReceiptAndName(Receipt receipt, String name);
}
